package main.java.FSMDE.controllers.factories.test.mock;

import main.java.FSMDE.controllers.ITransitionController;
import main.java.FSMDE.controllers.factories.ITransitionControllerFactory;

public class MockTransitionControllerFactory implements
		ITransitionControllerFactory {

	private ITransitionController controller;
	private int createCalls;

	@Override
	public ITransitionController create() {
		this.createCalls++;
		return this.controller;
	}

	public void setController(ITransitionController controller) {
		this.controller = controller;
	}

	public ITransitionController getController() {
		return controller;
	}

	public int getCreateCallsCount() {
		return this.createCalls;
	}

}
